/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.ctop.modules.job.entity;

import org.hibernate.validator.constraints.Length;

import com.ctop.common.persistence.DataEntity;

/**
 * 定时任务日志Entity
 * @author linbc
 * @version 2017-12-19
 */
public class ScheduleJob extends DataEntity<ScheduleJob> {
	
	private static final long serialVersionUID = 1L;
	private String beanName;		// bean名称
	private String methodName;		// 方法名
	private String params;		// 参数
	private String cronExpression;		// cron表达式
	private String status;		// 任务状态
	
	
	/**
	 * 任务调度参数key
	 */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
    
	public ScheduleJob() {
		super();
	}

	public ScheduleJob(String id){
		super(id);
	}

	@Length(min=0, max=200, message="bean名称长度必须介于 0 和 200 之间")
	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}
	
	@Length(min=0, max=100, message="方法名长度必须介于 0 和 100 之间")
	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	
	@Length(min=0, max=2000, message="参数长度必须介于 0 和 2000 之间")
	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}
	
	@Length(min=0, max=100, message="cron表达式长度必须介于 0 和 100 之间")
	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	
	@Length(min=0, max=1, message="任务状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}